From Approximate to Optimal Solutions: A Case Study of Number Partitioning
نویسنده
چکیده
Given a set of numbers, the two-way partitioning problem is to divide them into two subsets, so that the sum of the numbers in each subset are as nearly equal as possible. The problem is NP-complete, and is contained in many scheduling applications. Based on a polynomial-time heuristic due to Karmarkar and Karp, we present a new algorithm, called Complete Karmarkar Karp (CKK), that optimally solves the general number-partitioning problem. CKK significantly outperforms the best previously-known algorithms for this problem. By restricting the numbers to twelve significant digits, we can optimally solve two-way partitioning problems of arbitrary size in practice. CKK first returns the Karmarkar-Karp solution, then continues to find better solutions as time allows. Almost five orders of magnitude improvement in solution quality is obtained within a minute of running time. Rather than building a single solution one element at a time, CKK constructs subsolutions, and combines them in all possible ways. CKK is directly applicable to the 0/1 knapsack problem, since it can be reduced to number partitioning. This general approach may also be applicable to other NP-hard problems as well. 1 Introduction and Overview Consider the following very simple scheduling problem. We are given two identical machines, a set of jobs, and the time required to process each job on either machine. Assign each job to one of the machines, in order to complete all the jobs in the shortest elapsed time. In other words, divide the job processing times into two subsets, so that the sum of the times in each subset are as nearly equal as possible. This is the two-way number partitioning problem, and is NP-complete[l]. The generalization to K-way partitioning with K machines is straightforward , with the cost function being the difference between the largest and smallest subset sums. This basic problem is likely to occur as a subproblem in many practical scheduling applications. For example, consider the set of numbers (4, 5, 6, 7, 8). If we divide it into the two subsets (7,8) and (4,5,6), the sum of each subset is 15, and the difference of the subset sums is zero. In addition to being optimal, this is also a perfect partition. Note that if the sum of all the numbers is odd, a perfect partition will have a subset difference of one. We first present previous work on this problem, including a polynomial-time greedy heuristic, and an exponential-time algorithm …
منابع مشابه
Approximate Pareto Optimal Solutions of Multi objective Optimal Control Problems by Evolutionary Algorithms
In this paper an approach based on evolutionary algorithms to find Pareto optimal pair of state and control for multi-objective optimal control problems (MOOCP)'s is introduced. In this approach, first a discretized form of the time-control space is considered and then, a piecewise linear control and a piecewise linear trajectory are obtained from the discretized time-control space using ...
متن کاملExact and approximate solutions of fuzzy LR linear systems: New algorithms using a least squares model and the ABS approach
We present a methodology for characterization and an approach for computing the solutions of fuzzy linear systems with LR fuzzy variables. As solutions, notions of exact and approximate solutions are considered. We transform the fuzzy linear system into a corresponding linear crisp system and a constrained least squares problem. If the corresponding crisp system is incompatible, then the fuzzy ...
متن کاملPareto-optimal Solutions for Multi-objective Optimal Control Problems using Hybrid IWO/PSO Algorithm
Heuristic optimization provides a robust and efficient approach for extracting approximate solutions of multi-objective problems because of their capability to evolve a set of non-dominated solutions distributed along the Pareto frontier. The convergence rate and suitable diversity of solutions are of great importance for multi-objective evolutionary algorithms. The focu...
متن کاملA study of a Stefan problem governed with space–time fractional derivatives
This paper presents a fractional mathematical model of a one-dimensional phase-change problem (Stefan problem) with a variable latent-heat (a power function of position). This model includes space–time fractional derivatives in the Caputo sense and time-dependent surface-heat flux. An approximate solution of this model is obtained by using the optimal homotopy asymptotic method to find the solu...
متن کاملWell Placement Optimization Using Differential Evolution Algorithm
Determining the optimal location of wells with the aid of an automated search algorithm is a significant and difficult step in the reservoir development process. It is a computationally intensive task due to the large number of simulation runs required. Therefore,the key issue to such automatic optimization is development of algorithms that can find acceptable solutions with a minimum numbe...
متن کاملSolving Multi-objective Optimal Control Problems of chemical processes using Hybrid Evolutionary Algorithm
Evolutionary algorithms have been recognized to be suitable for extracting approximate solutions of multi-objective problems because of their capability to evolve a set of non-dominated solutions distributed along the Pareto frontier. This paper applies an evolutionary optimization scheme, inspired by Multi-objective Invasive Weed Optimization (MOIWO) and Non-dominated Sorting (NS) strategi...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1995